package com.example.entity.mes;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName equipment
 */
@Data
@TableName("equipment")
@ApiModel(value = "设备台账")
public class Equipment implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id主键")
    private Integer id;

    /**
     * 设备编码
     */
    @TableField(value = "code")
    @ApiModelProperty("设备编码")
    private String code;

    /**
     * 设备名称
     */
    @TableField(value = "name")
    @ApiModelProperty("设备名称")
    private String name;

    /**
     * 品牌
     */
    @TableField(value = "brand")
    @ApiModelProperty("品牌")
    private String brand;

    /**
     * 规格型号
     */
    @TableField(value = "specification")
    @ApiModelProperty("规格型号")
    private String specification;

    /**
     * 设备状态（0为开机，1为停机）
     */
    @TableField(value = "status")
    @ApiModelProperty("设备状态（0为开机，1为停机）")
    private Integer status;
    @TableField(value = "table_id")
    @ApiModelProperty("设备机台号")
    private Integer tableId;

    /**
     * 创建时间
     */
    @TableField(value = "creationtime")
    @ApiModelProperty("创建时间")
    private String creationtime;

    /**
     * 绑定设备分类的id
     */
    @TableField(value = "uid")
    @ApiModelProperty("绑定设备分类的id")
    private Integer uid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}